const Router = require('koa-router');
const Login = require('../service/login_service');
const router = new Router();
const jsonResult = require('../utils/JSON')
const Cookie = require('../utils/cookie')

// 登录-登录验证
router.post("/loginCheck",Login.loginCheck);

router.post("/loginRoleInfo",Login.loginRoleInfo);

router.get("/test",(ctx)=>{
    console.log('my test');
    Cookie.setCookie(ctx,'test','test')
    ctx.body = jsonResult.resultSuccessJson(undefined, undefined,{msg:'test',token:'test'});
})

module.exports = router;



